Think about what files actually do in real programs.
A log gets one more line every time something happens. A diary gets today's entry. A scoreboard gets the latest game.
None of those want yesterday's contents wiped. They want one more thing on the end — and "w" is exactly the wrong tool for that.