norflash: add support for writes