Thank you for raising this. We are aware of the bug, and hopefully it would be fixed in the next patch.
However you don't need to call wiced_apps_erase to write a new file, as the write function have an embedded erase per section inside it. This is usually to avoid long delays in erasing the full flash at start.
please have a look at: WICED Multi-Application Support Question