function writeFileSync( file, data, options ) {
	try {
		if ( arguments.length > 2 ) {
			writeFile( file, data, options );
		} else {
			writeFile( file, data );
		}
	} catch ( err ) {
		return err;
	}
	return null;
}
Synchronously writes data to a file.

@param {(string|Buffer|integer)} file - file path or file descriptor
@param {(string|Buffer)} data - data to write
@param {(Object|string)} [options] - options
@returns {(Error|null)} error object or null

@example
var err = writeFileSync( './beep/boop.txt', 'beep boop\n' );
if ( err instanceof Error ) {
    throw err;
}