Let P, Q, R, S be the four arms of the bridge. At balance the galvanometer shows no deflection, so the current through G is zero and $I_1$ flows through P and Q, $I_2$ through R and S.
1. No current in G, so B and D are at the same potential: $V_B = V_D$.
2. Potential drop across P equals that across R: $I_1P = I_2R$.
3. Potential drop across Q equals that across S: $I_1Q = I_2S$.
4. Dividing step 2 by step 3: $\dfrac{P}{Q} = \dfrac{R}{S}$, which is the balancing condition of the Wheatstone bridge.
In the balanced bridge no current flows through the galvanometer G, so the current $I_1$ passes through P and Q (in series) and $I_2$ through R and S (in series)
No deflection in G means the junctions across G are at the same potential
Equal potential drops in the two upper-left arms (Kirchhoff's voltage law): $I_1 P = I_2 R$
Equal potential drops in the two other arms (Kirchhoff's voltage law): $I_1 Q = I_2 S$
Dividing the two equations: $\dfrac{P}{Q} = \dfrac{R}{S}$