A convergence theorem on an extrapolated iterative method and its applications