What's even more frightening is that you don't know anything about Flash. Do you want to write Flash directly without buffering? Don't even use sector buffer? Didn't you indiscriminately ask to erase the whole sector first, and then slowly receive and write byte by byte?
This idea is ok to do papers and research, but if it is really used in products, it will kill a factory.