I see no problem here. The ship determines by it's weapons, that's why they built in the first place, to carry weapons. And since it's space you do not care about physical balance of the ship.
There are mudskipper mk 2 freighter, which got his cargo bay house a large ballistic weapon, and it doesn't look odd at all.