On the global well-posedness of a generalized 2D Boussinesq equations