writeFile in packager-utils updated to be sync

This fixes a problem where config/user.js has not yet been written before it is added to frameworkModules.js for the simulator bar file.