Ensurespace() takes chunks, not bits.

    We were ensuring the wrong thing, which lead to crashes.