Datanode: write and read.