implemented dfs.write, synch issues not done