Polyurethane is the same material Shetland used to fill the empty space between the hull and the deck in our boats it should work, not so strong as the PVC foam but anyway better (imho) than the original balsa wood that got rotten. And very cheap, it is used as thermal insulator in houses. You could even use hard styrofoam, but only with epoxy resin because the styrene in polyester dissolves it and you don't want that to happen
Before gluing or laminating it paint it with a thin layer of pure resin to saturate all the pores, or the first layer of glass fiber will tend to raise and form bubbles.
i have some general knowledge using resins ect being in the panel beating trade but much to learn on restoring a boat
need to get it fixed before i can fit it out and repaint before the bad weather comes but its drying out fairly quick couple more days and the moisture should be gone from the old repair it had
needless to say, the old fiberglass will have to be thoroughly sanded to remove all traces of wood and a bit of fiberglass too. I'd do this as soon as possible, as it can only help the whole thing to dry faster.