A global dimension theorem for quantized Banach algebras