CoreTech,
The galleries were indeed functional parts of the ship. While it is true that they served as points of decoration, they were also balconies to the officer's quarters, platforms for small arms fire, and they often served as the officer's heads.
Hope it helps!
Bill Morrison