Fix fs.writeFileSync mode issue. The options.mode is NOT passed to openSync.