You wouldn’t use a loop within the BLYNK_WRITE_DEFAULT() callback.
When BLYNK_WRITE_DEFAULT() fires, you can retrieve the virtual pin number that caused the callback to fire by using int pin = request.pin; and use that to direct your code flow accordingly.