Set the correct directory and add row.names=FALSE to the write.table