Pc blocking doorway during combat

Playing a DnD and our barbarian rushed into a room and stopped just through the doorway. Was surrounded by enemies. Dm said no allies behind barbarian would be able to get a attack because barbarian was blocking any attacks. The door size was just under a 5ft sq. Is this accurate? The map was tresendar manor area 10 north door .