Mock fs.writeFile()