I thought the current flowing through an inductor will lag behind the voltage across the inductor. Pls correct me if I'm wrong.
You are correct. We can see this from a purely circuits perspective as well. Using Ohm's Law, we know V = IZ, where Z is the impedence. For an inductor Z = jwL. So V = I*(jwL).
Let's find the phase. arg(V) = arg(I*(jwL)). The phase of a product is equal to the sum of the phases, so arg(V) = arg(I) + arg(jwL).
arg(V) = arg(I) + pi/2. It is now apparent that the voltage across an inductor leads the current by pi/2.