It could have been at least part of your mucus plug. Sometimes it can come away in bits. Also it's quite normal for labour to start from 37 weeks onwards. Even though it's earlier than your due date, if you were to have your baby now, it wouldn't be considered early. However you can lose your mucus plug several days or weeks before labour starts.
Good luck though as it clearly won't be long!!
