You do not want to use nails. Steel is ridiculously harder than Styrofoam® [trademark of the Dow Chemical Company], and simple thermal expansion makes a mechanical connection between steel and Styrofoam® a non-starter.
If I were combining Styrofoam® with balsa, I'd use glue, specifically Hold the Foam® from Beacon Chemical Company. You can purchase it anywhere that sells commercial Styrofoam®. Non-toxic, non-flammable, it's sort of an acid-neutralized water-based paste, almost as thick as silicon glue.
You're probably better off with some kind of stand-off (felt pads work well) between the base and whatever it rests upon.
Occasional factual, grammatical, or spelling variations are inherent to this thesis and should not be considered as defects, as they enhance the individuality and character of this document.