Port test-fs-write-sync from node.js
Port test-fs-write-sync from node.js

luvit/luvit,GabrielNicolasAvellaneda/luvit-upstream,rjeli/luvit,luvit/luvit,AndrewTsao/luvit,connectFree/lev,GabrielNicolasAvellaneda/luvit-upstream,AndrewTsao/luvit,sousoux/luvit,boundary/luvit,zhaozg/luvit,bsn069/luvit,sousoux/luvit,DBarney/luvit,boundary/luvit,bsn069/luvit,rjeli/luvit,connectFree/lev,sousoux/luvit,boundary/luvit,GabrielNicolasAvellaneda/luvit-upstream,GabrielNicolasAvellaneda/luvit-upstream,zhaozg/luvit,sousoux/luvit,rjeli/luvit,boundary/luvit,kaustavha/luvit,DBarney/luvit,sousoux/luvit,boundary/luvit,kaustavha/luvit,kaustavha/luvit,boundary/luvit,DBarney/luvit,rjeli/luvit,bsn069/luvit,sousoux/luvit,DBarney/luvit,AndrewTsao/luvit