Say on the first floor of a school building, we have several classes. In front of the classes, there is a passage. So, one side of the passage are class doors and one side is a barrier. If students look down over the barrier, they see the schoolyard.
(Source)
Is the passage called a balcony or a corridor?
If the school building were just a house, I would call it balcony. But there are several classes next to each other in the above picture.