A fire broke out just after 6 p.m. yesterday on the third floor of 511 Amsterdam Avenue, between 84th and 85th streets. The blaze quickly spread to other apartments and the neighboring building at 509 Amsterdam Avenue. Five people were injured. The four-alarm blaze brought around 170 firefighters to the scene, as the flames consumed the fourth and fifth floors of the the building.