27 displaced, firefighter injured in apartment fire