I tried to do what you described and couldn't duplicate your problem. Below is the piece of code I wrote. It assumed the properties file already exists. The code reads what's in the file, add one new key-value pair, and writes the file in each iteration.
And this is what's in the properties file after running the program.
Notice the colons and file separators were all handled automatically.