fixed a small bug in balloc
complete write() given the assumption that writeINodeData does balloc