Datanode and Namenode done.
Achieve write function.