General relation between drift velocity and dispersion of a molecular motor