learning user defined function to blink LED

You seem to have a byte variable blinkLed, which doesn't do anything, and also a function with exactly the same name that you never call. That's just confusing.

Your definition for the function blinkLed() is INSIDE loop(). You can't do that, it must be outside loop(). And you've given it a parameter which it doesn't need and which is invalid anyway (you can't do a digitalWrite() without telling it what value to write).

Basically you need to move the function definition outside loop(). Then all loop() should contain is a call to the function.

Steve