On the global dimension of quasi–hereditary algebras with triangular decomposition