Even been a beginner I know what global and local variables are.
I thought even afer BLYNK.WRITE variables were considered as Global. But not.
What I did was:
Create a new Global before BLYNK.WRITE like this and it worked.
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
Please consider this topic closed.