For test, try to write single byte every time, and wait 5ms, between each write.
That would eliminate page write issue.