Once an island is completed, meaning it has the exact number of cells as indicated by its clue, it can be surrounded by walls. This is because no other island cells can be adjacent to it, either horizontally or vertically.
Here's an example:
The island of '3' has been completed. We can now surround this island with walls.