p6est: fixed balancing with non-power-of-2 root length.

We just have to shift the stack by the difference and it works out fine.