Cut the blocks and place them in the hole every few feet. There is no need to nail them or stick them in place just install the base board right on them, pressed against the molding floor. It is better to keep the nails at the bottom of the base on the hole so that they pass through the dry walls, not the air.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.