The India opener looked on course for a fourth Test century before England captain Ben Stokes struck just before tea.