Lots of small changes (FIX WRITE)

Write is broken since I did some stuff with the implementation of
BTreeNode.