Just add something like the following to all your <<linkreplace>> macros after <<set $statboost -->>:
<<if $statboost lte 0>><<replace "#exit">>[[Continue|nextpassage]]<</replace>><</if>>
Then somewhere in your passage set up a span with the id in question:
<span id="exit"></span>
or
@@#exit;@@
It would look something like:
@@#exit;Choose your Stats:@@
<<nobr>>
<<linkreplace "Intelligence">>
<<set $char.inte += $statboost>>
<<set $statboost-->>
Intelligence: $char.inte
<<if $statboost lte 0>>
<<replace "#exit">>
[[Continue|nextpassage]]
<</replace>>
<</if>>
<</linkreplace>>
<</nobr>>
...and so on for all of your links...
Alternatively you could have your link be on the screen the whole time but only work if all stats have been set:
<<nobr>>
<<link "Continue">>
<<if $statboost lte 0>>
<<goto "nextpassage">>
<<else>>
<<replace "#test" t8n>>
@@color:red;Please set all your Stats before proceeding@@
<</replace>>
<</if>>
<</link>>
@@#test;@@
<</nobr>>
Didn't have time to test any of the above, so be aware of any typos. The principle of how this works should be clear though.