Naturally, it's a blockade of a piece of land and hence it would affect everyone inside it.which means it affects everyone. It doesn't just get Hamas.
I cannot see however how does that equal to being a "collective punishment".
You can't blockade a government without blockading the people it governs.
It seems to me like you're against blockades in general.It doesn't just get Hamas. That's like claiming it's ok to bomb an apartment complex with 20-30 innocent people in there because at one time there was a terrorist. And claiming that such act doesn't collectively punish or hurt the Palestinian people. As I said, you can only treat people like dirt for so long. Eventually they'll fight back.
Every blockade in the history of men has affected everyone inside the blockaded area, and you seem to claim that only the Israeli and Egyptian blockades on Gaza have that result.
Blockading the Hamas does not equal to punishing the people it governs, blockading a territory in general does not equal to the punishment of the people inside it.