Dynamics of imbalanced quasi-one-dimensional binary Bose-Einstein condensate in external potentials