fix writing last bytes in a 16k page of CV data

https://d.puremagic.com/issues/show_bug.cgi?id=7634