write csv back complete