A realistic model of superfluidity in the neutron star inner crust