18 families safe after two-alarm apartment fire