I got the same responce, its like there is some counter being incremented on how many writes you did to that file.
I note that 32768 is 8000hex , might have something to do with a signed integer being used and it just rolled over from 32767 to -32768. And maybe the negitive number causes the invalid write error to occur.