NAFlashWrite

My application threads stops running when I execute this function. Thread A priority=8 toggles a GPIO which I monitor each 2 msec. Thread B priority=15 executes NAFlashWrite. Now the toggling stops on Thread A for a few seconds. Any way to keep Thread running while the Flash is being updated?