moved writeNumber to fsutil