Yes you can
You can both create a floorplan that is not based on overall square 10 x 10 x 10 cubes, and you can have interior walls.
In addition to the text only limiting you to the overall volume for your mansion to have to fit in 50 10-foot cubes, as proof, you can look at the map of the adventure The Joy of Extradimensional Spaces from Candlekeep Mysteries. This official module features a Magnificent Mansion that somehow has been made permanent.
Fistandia's mansion was created using a Mordenkainen's magnificent mansion spell and made permanent by Fistandia's own enchantments.
The map on p. 18 includes several areas that do not fit a 10-foot grid, like the entrance, which protrudes 5 feet, corridors that are 5 feet wide or the overall dimensions of the entire lower floor, which is 55 x 25 feet large. It even has outer areas with circular outlines.
Why then mention 10-feet cubes?
If you follow the example from this module, then even the enveloping space in which you put your floor plan does not need to be in 10 x 10 x 10 foot cubes, because to encompass the dimensions of all three floors on 10 x 10 foot squares, you would need 83 such squares, and if the ceiling height on each level was 10 feet you would require 83 10-foot cubes, not 50. Even if you assumed there are only two layers of cubes, and each level is only 6 feet high to allow for some floors, you still would need more than 60 cubes. So the mansion would not fit the limits. The actual square footage of floors is is about 6,150 feet, not the 5,000 one would expect if all spaces were 10 feet high; at this square footage, you still could have floors that are about 8.1 foot high, comfortable enough for normal creatures, if all that mattered was the total cubic feet staying within 50,000.
Now, why even mention 10 x 10 x 10 foot cubes, if the only limitation was the total volume? I suspect that the adventure writers just did take some artisitic liberties, and did not in fact calculate total volumes. What would make sense to me is that the rooms must be of sizes that would fit into a structure build of 10 x 10 x 10 foot boxes. That way, you can have any shape you like for your balconies, but if they are not fitting into boring, superimposed 10 foot boxes, you are not using all the space you have.
In nearly all cases, if you use the mansion just to rest and eat, the actual detailed layout may not matter, because it is highly unlikely that you will experience tactical combat there, as you can control who may or may not enter. But there could be fringe situations where it comes to play, for example if you invite NPCs to stay, and some of them turn out to be traitors.
P.S. The module also answers the old question what you could see if your mansion had outer windows
Rooms with windows to the outside are lit by the indigo miasma swirling outside the mansion, which colors everything in the room with its tint.
This is not mentioned anywhere in the spell description, so the adventure writers ad-libbed this. It furthermore is not even starting right at the boundary:
Outside, a swirling indigo miasma hovers 20 feet from the building on all sides. A creature that enters the miasma feels increasingly uneasy during the first minute of exposure. If it remains in the miasma, it gains 1 level of exhaustion for every minute it spends there.
None of this is in the spell description, so I think it is up to your DM if they want to adopt this idea.