reenabled native file write function for Windows