Gravitational Collapse and Disk Formation in Magnetized Cores