writeFileSync: fixed synchronous path