For writing flash you have to erase a whole block ...
# ieee-sscs-dc-21q3
p
For writing flash you have to erase a whole block (multiple pages) first, and then write a whole page. (And sometimes you even have to write the pages in certain sequences)