In the following answer, I'm going to discuss imbalances between the number of subjects allocated to the groups. If you're instead interested in imbalances in covariates, see myth 5 in Senn (2013).
The following is adapted from section 3.2 in Rosenberger & Lachin (2016). If you have two groups and subjects are assigned to the two groups by a fair coin toss, you have complete randomization. To see why complete randomization is sometimes unattractive, let $N_A(i)$ be the number of patients randomized to treatment $A$ after $i$ patients have been randomized. In the same manner, let $N_B(i) = i-N_A(i)$ be the number of patients randomized to treatment $B$. By the central limit theorem, $N_A(i)$ is asymptotically normal with mean $n/2$ and variance $n/4$. Letting $D_n=N_A(n) - N_B(n) = 2N_A(n)-n$, we see that $D_n$ is asymptotically normal with mean $0$ and variance $n$. The measure $|D_n|$ can be used to describe the degree of imbalance between the groups. For $r>0$, $$ \operatorname{Pr}(|D_n|>r)\approx 2\left\{1 - \Phi(r/\sqrt{n})\right\} $$ where $\Phi$ is the standard normal CDF.
Rosenberger WF, Lachin JM (2016): Randomization in clinical trials: theory and practice. 2nd ed. John Wiley & Sons.
Senn, S. (2013). Seven myths of randomisation in clinical trials. Statistics in medicine, 32(9), 1439-1450. (link)