$I=J A$
As $A -cross$ section of wire changes, $J -current$ density changes and $I$ current remains same.
The free electron density is a property of the material and doesnot change when current passes.
As the cross section changes, current density changes and hence the drift velocity changes.








