The immigration office is at the wharf and depending on where your ship docks, it's walkable.
When you exit Riffort Village (cruise village), you will see the canal on your right hand side. You need to walk straight, pass the floating bridge, pass the ferries and ask at the very first entrance (security booth) still on your right - how to get to the Immigration office to get your passport stamped.