the flag link is right next to the comments link.
it's very easy to accidentally flag something from the home page of hacker news, when you actually intended to read the comments.
You can also unflag stories.