I sort of liked the ending to the episode but I agree on scrutiny it doesn't make much sense. Would it have been that much more difficult for the Enterprise to take Scotty to a Starbase or the nearest Federation planet?
It's also set-up odd. Scotty tells Geordi, "Well I thought you were going to buy me a drink in 10-Forward?"
Geordi says, "Actually, I have a better idea..."
And then they go into the shuttlebay and kick Scotty off the ship.