Primordial curvature perturbation during and at the end of multi-field inflation