Update DataSaver.java

Fixed DataSaver's saveDataToFile - it now clears the file before writing to it.