Win32: Don't write files before creating the directory in the first place.

May possibly fix https://github.com/hrydgard/ppsspp/issues/4189, but it was wrong either way; it was making the read-only directory detection fail on perfectly usable directories.