Triple linking numbers and surface systems