Fermion pairing with spin-density imbalance in an optical lattice