How can I include BLYNK_WRITE(V7) in the timer function?

You don’t need to check virtual pins, the function is automatically called when you use the corresponding widget (just check you set virtual pin number correctly).