* Fix all the error code paths
* Fix writes/truncates for big files
* Add a layer of caching over blkwrite/blkread
* Remove unnecessary flush to disks
* Add big-endian/little-endian byte order conversions
