Added options parameter to writeFile and writeFileSync

I added an options parameter, which mirrors the options parameter used by writeFile and writeFileSync. This is the only way to specify the mode of the file created (to prevent non-owner from reading the file, etc.).