I've figured it out. To append/mutate the file, I just have to load it first. That way, Godot knows what's in the file and can avoid writing over it entirely.