Don't write more than the savedata buffer.

Fixes Numblast when there's savedata, probably others.
Could use more testing.
Merge pull request #3714 from unknownbrackets/savedata-minor

Don't write more than the game's savedata buffer