Curvature Perturbation and Waterfall Dynamics in Hybrid Inflation