writeFileSync: fixed synchronous path
Merge pull request #2 from jadonk/master

Fix writeTextFile synchronous operation