Loading a Permanent Magnetic Lattice with Ultracold Atoms on an Atom Chip