The default espflash layout hands the whole 0x10000..0x400000 span to the app partition, so the storage range sat inside it. Shrink the app and reserve a dedicated storage partition above it.